const express = require("express");
const router = express.Router()

// 引入模块
const user = require("./admin/user")
const login = require("./admin/login")
const nav = require("./admin/nav")
const manager = require("./admin/manager")

router.get("/api", (req, res) => {
  // res.send("后台管理中心")
  // res.render("login", {})
})

// 挂载路由
router.use("/user", user)
router.use("/login", login)
router.use("/nav", nav)
router.use("/manager", manager)

module.exports = router